package com.company.skill;

import com.company.creature.Creature;

/**
 * @description:
 * @author: ZhaoYicong
 * @date: Created in 2020/5/13 21:09
 * @version: v1.0
 * @modified By:
 */
public abstract class Skill {
    private String id;
    private String name;
    private int hurtValu;
    private double beishu;
    private String owner;
    private int skill_type;


    private int magicValue;
    public abstract void skillDescription();
    public abstract boolean useSkill(Creature creature, Creature targetCreature);


    public Skill() {
    }

    public Skill(String id, String name, int magicValue) {
        this.id = id;
        this.name = name;

        this.magicValue = magicValue;
    }

    public Skill( String owner,String id, String name, int magicValue,double beishu) {
        this.id = id;
        this.name = name;
        this.beishu = beishu;
        this.owner = owner;
        this.magicValue = magicValue;
    }

    //


    public int getSkill_type() {
        return skill_type;
    }

    public void setSkill_type(int skill_type) {
        this.skill_type = skill_type;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public double getBeishu() {
        return beishu;
    }

    public void setBeishu(double beishu) {
        this.beishu = beishu;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    public int getMagicValue() {
        return magicValue;
    }

    public void setMagicValue(int magicValue) {
        this.magicValue = magicValue;
    }
    public int getHurtValu() {
        return hurtValu;
    }

    public void setHurtValu(int hurtValu) {
        this.hurtValu = hurtValu;
    }
}
